package dao

import "shop/entity"

func GetOrderByOrderNoAndUserId(orderNo string, userId int64) *entity.OrderInfo {
	order := new(entity.OrderInfo)
	GetDB().Model(order).Where("order_no", orderNo).Where("user_id", userId).Take(order)
	return order
}
